package com.bienvenue.main.ui.fragment.personal;

import android.content.Intent;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.bienvenue.main.R;
import com.bienvenue.main.adapter.MainPositionsAdapter;
import com.bienvenue.main.base.BaseFragment;
import com.bienvenue.main.model.MainBean;

import com.chad.library.adapter.base.BaseQuickAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.ui.fragment
 * @ClassName: PromptPositionFragment
 * @Description: java类作用描述
 * @Author: Mr.Chen
 * @CreateDate: 2020/9/9 9:30
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/9 9:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class PromptPositionFragment extends BaseFragment {
    @BindView(R.id.rv_job_opening)
    RecyclerView rvJobOpening;
    MainPositionsAdapter mAdapter;
    @Override
    protected void initData() {
        mAdapter=new MainPositionsAdapter();
        rvJobOpening.setAdapter(mAdapter);
        List<MainBean> mainList = new ArrayList<>();
        MainBean mainBean = new MainBean();
        mainBean.setAddress("陕西 西安 未央");
        mainBean.setEducation("3~5年大专");
        mainBean.setMoneyIntervalle("￥16~20K");
        mainBean.setPositionsType("软件开发");
        mainBean.setPromptName("西安陇朝盈科技责任有限公司");
        mainList.add(mainBean);
        mAdapter.setNewData(mainList);
        mAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
            @Override
            public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
                showToast("此功能暂未实现");
            }
        });
    }

    @Override
    protected void initView(View view) {
        rvJobOpening.setLayoutManager(new LinearLayoutManager(getContext()));


    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_prompt_position;
    }

    @OnClick(R.id.tv_job_classification)
    void onJobClassification(){
        showToast("此功能暂未实现");
    }
    @OnClick(R.id.tv_city)
    void onCity(){
        showToast("此功能暂未实现");
    }
    @OnClick(R.id.tv_experience)
    void onExperience(){
        showToast("此功能暂未实现");
    }
    @OnClick(R.id.tv_salary)
    void onSalary(){
        showToast("此功能暂未实现");
    }
}
